package com.ld.control.business.process.vo.resp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 任务流程实例
 * </p>
 *
 * @author wangfeng
 * @since 2024-05-21
 */
@Data
public class ProcessExampleDetailsRespVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "任务实例id")
    private Long taskExampleId;

    @Schema(description = "子任务实例id")
    private Long subTaskExampleId;

    @Schema(description = "流程模板名称")
    private String name;

    @Schema(description = "流程模板类型：0普通流程，1:初始化流程，2结束流程")
    private Integer type;

    @Schema(description = "任务流程开始时间")
    private Date startTime;

    @Schema(description = "任务流程结束时间")
    private Date endTime;

    @Schema(description = "状态，请看代码枚举")
    private Integer status;

    @Schema(description = "所有节点信息")
    private String allNodeInfo;

}
